package com.tl.app.service.impl;

import java.util.List;
import com.tl.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tl.app.mapper.AppClerkServerMapper;
import com.tl.app.domain.AppClerkServer;
import com.tl.app.service.IAppClerkServerService;

/**
 * 店员服务Service业务层处理
 * 
 * @author suhp
 * @date 2024-07-07
 */
@Service
public class AppClerkServerServiceImpl implements IAppClerkServerService 
{
    @Autowired
    private AppClerkServerMapper appClerkServerMapper;

    /**
     * 查询店员服务
     * 
     * @param serverId 店员服务主键
     * @return 店员服务
     */
    @Override
    public AppClerkServer selectAppClerkServerByServerId(Long serverId)
    {
        return appClerkServerMapper.selectAppClerkServerByServerId(serverId);
    }

    /**
     * 查询店员服务列表
     * 
     * @param appClerkServer 店员服务
     * @return 店员服务
     */
    @Override
    public List<AppClerkServer> selectAppClerkServerList(AppClerkServer appClerkServer)
    {
        return appClerkServerMapper.selectAppClerkServerList(appClerkServer);
    }

    /**
     * 新增店员服务
     * 
     * @param appClerkServer 店员服务
     * @return 结果
     */
    @Override
    public int insertAppClerkServer(AppClerkServer appClerkServer)
    {
        appClerkServer.setCreateTime(DateUtils.getNowDate());
        return appClerkServerMapper.insertAppClerkServer(appClerkServer);
    }

    /**
     * 修改店员服务
     * 
     * @param appClerkServer 店员服务
     * @return 结果
     */
    @Override
    public int updateAppClerkServer(AppClerkServer appClerkServer)
    {
        appClerkServer.setUpdateTime(DateUtils.getNowDate());
        return appClerkServerMapper.updateAppClerkServer(appClerkServer);
    }

    /**
     * 批量删除店员服务
     * 
     * @param serverIds 需要删除的店员服务主键
     * @return 结果
     */
    @Override
    public int deleteAppClerkServerByServerIds(Long[] serverIds)
    {
        return appClerkServerMapper.deleteAppClerkServerByServerIds(serverIds);
    }

    /**
     * 删除店员服务信息
     * 
     * @param serverId 店员服务主键
     * @return 结果
     */
    @Override
    public int deleteAppClerkServerByServerId(Long serverId)
    {
        return appClerkServerMapper.deleteAppClerkServerByServerId(serverId);
    }
}
